package com.micro.modual.extension;

import com.micro.common.MicroConstant;
import com.micro.common.biz.GeneratorCodeUtil;
import com.micro.common.util.SnowFlakeUtil;
import com.micro.modual.entity.AppointmentRecord;
import com.micro.modual.model.bo.appointmentrecord.AppointmentRecordBO;

/**
 * <h1>预约记录表 延展类</h1>
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:23:27
 */
public class AppointmentRecordExtension {

    /**
     * <h2>转换: 预约记录表 新增</h2>
     * @param appointmentRecordBO {@link AppointmentRecordBO} 预约记录表 新增/修改 请求对象
     * @return {@link AppointmentRecord} 预约记录表
     */
    public static AppointmentRecord converAddAppointmentRecord(AppointmentRecordBO appointmentRecordBO) {
        AppointmentRecord appointmentRecord = new AppointmentRecord();
        appointmentRecord.setId(SnowFlakeUtil.getId());
                                    return appointmentRecord;
    }

    /**
     * <h2>转换: 预约记录表 修改</h2>
     * @param appointmentRecordBO {@link AppointmentRecordBO} 预约记录表 新增/修改 请求对象
     * @return {@link AppointmentRecord} 预约记录表
     */
    public static AppointmentRecord converEditAppointmentRecord(AppointmentRecordBO appointmentRecordBO) {
        AppointmentRecord appointmentRecord = new AppointmentRecord();
        appointmentRecord.setId(appointmentRecordBO.getId());
                                    return appointmentRecord;
    }
}
